package org.example.dto;

import lombok.Data;
import org.example.enums.UserStatus;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 用户批量操作DTO
 */
@Data
public class UserBatchDTO {
    
    @NotEmpty(message = "用户ID列表不能为空")
    private List<Long> userIds;
    
    @NotNull(message = "操作类型不能为空")
    private BatchOperation operation;
    
    private UserStatus status;  // 批量更新状态时使用
    
    public enum BatchOperation {
        DELETE("删除"),
        UPDATE_STATUS("更新状态");
        
        private final String description;
        
        BatchOperation(String description) {
            this.description = description;
        }
        
        public String getDescription() {
            return description;
        }
    }
}